package com.tsmti.system.entity;

import com.tsmti.core.common.entity.AbstractEntity;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Where;

import javax.persistence.*;

/**
 * @Package：com.tsmti.system.entity
 * @Class：MessageI18NProperty
 * @Description： TODO
 * @Author：zcw
 * @Date：Created in 2018/5/30 16:09
 * @Company:
 * @Version：
 * @Modified By:
 */
@Entity
@Table(name = "PIMS_LABEL")
@DynamicUpdate
@DynamicInsert
@SuppressWarnings("serial")
public class MessageProperty extends AbstractEntity<Long> {

    /**编码*/
    private Long id;
    /**标签代码*/
    private String code;
    /**标签名称*/
    private String labelName;
    /**语言*/
    private String locale;

    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_LABEL")
    @SequenceGenerator(name = "SEQ_LABEL", sequenceName = "label_sequence", allocationSize = 1)
    @Override
    public Long getId() {
        return id;
    }
    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }

    public String getLocale() {
        return locale;
    }

    public void setLocale(String locale) {
        this.locale = locale;
    }
}
